package com.czy.owner.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.TextView;

import com.czy.owner.R;
import com.easyrecycleview.adapter.BaseViewHolder;
import com.easyrecycleview.adapter.RecyclerArrayAdapter;


/**
 * Created by wangyang on 2017/1/7.
 */
public class CarKeyboardAdapter extends RecyclerArrayAdapter<String> {
    public CarKeyboardAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new CarKeyboardViewHolder(parent);
    }


    public class CarKeyboardViewHolder extends BaseViewHolder<String> {
        private TextView tv_province_code_item;


        public CarKeyboardViewHolder(ViewGroup parent) {
            super(parent, R.layout.item_keyboard_code_recycler);
            tv_province_code_item = $(R.id.tv_province_code_item);

        }

        @Override
        public void setData(String str) {
            tv_province_code_item.setText(str);
        }
    }

    }
